import api from '../api'

export class AdminRoleApi extends api {
  verifyName (name, id) {
    return this.request({
      showLoading: false,
      url: `${this.servicePath}/${this.modulePath}/verifyName${id ? '/' + id : ''}`,
      method: 'post',
      dataType: 'form',
      data: { name }
    })
  }
}

export default new AdminRoleApi('role/info')
